package com.turbo.boot.crawler.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.tangzc.mpe.actable.annotation.Column;
import com.tangzc.mpe.actable.annotation.Index;
import com.turbo.framework.model.TurboBaseModel;
import lombok.Data;

/**
 * 描述
 *
 * @author wuyn
 * @since 2024/4/20
 */

@Data
@TableName(value = "crawler_config")
public class CrawlerConfigEntity extends TurboBaseModel<CrawlerConfigEntity> {


    @Column(comment = "分组ID", notNull = true)
    private Long groupId;

    //    @Index
    @Column(comment = "爬虫名称", notNull = true)
    private String name;

    //    @Index
    @Column(comment = "爬虫简介")
    private String brief;


    //    @Index
    @Column(comment = "目标地址", notNull = true)
    private String targetUrls;

    @Index
    @Column(comment = "地址白名单正则规则", notNull = true)
    private String whiteUrlRegexs;

    @Column(comment = "爬虫名称", notNull = true)
    private String crawlerRef;

    @Column(comment = "爬虫名称", notNull = true)
    private String crawlerPageParserRef;

    @Column(comment = "状态", notNull = true)
    private Integer status;

    @Column(comment = "线程数", notNull = true)
    private Integer threadCounts;

}
